﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data.Entity
{
    public class Logs
    {
        [Key]
        public int ID { get; set; }

        public int UserID { get; set; }

        public int MenuID { get; set; }

        public int ContentID { get; set; }

        public Boolean IsStatus { get; set; }

        private DateTime _CreateDate = DateTime.Now;
        public DateTime CreateDate { get { return _CreateDate; } set { _CreateDate = value; } }

        [ForeignKey("UserID")]
        public virtual User User { get; set; }

        [ForeignKey("MenuID")]
        public virtual Menu Menu { get; set; }

    }
}
